package ar.edu.utn.frba.tacs.warnes.beans;


import ar.edu.utn.frba.tacs.warnes.Auto;
import ar.edu.utn.frba.tacs.warnes.utils.ContenedorWarnes;

/**
 * @author dmiglino
 */
public class AutoAbmBean extends BaseAbmBean<Auto> {

	@Override
	protected void initObject() {
		if (getObject() == null)
			setObject(ContenedorWarnes.getInstance().creaUnAuto());
	}

	@Override
	protected void doBeforeCancelar() {
		ContenedorWarnes.getInstance().borrarAuto(getObject());
	}
}
